home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / program / wx_lib10.zoo / wx_get.c < prev    next >
C/C++ Source or Header  |  1992-08-01  |  881b  |  29 lines

  1. #include <wx_lib.h>
  2.  
  3. /*
  4.  * This routine was lifted pretty much intact from GemFast, for the calling
  5.  * sequence, and then customized to get all the parameters for the window.
  6.  *
  7.  * Arguments:    The Window structure for the window you want operated on.
  8.  */
  9. void    wx_get(ws)
  10. Window    *ws;
  11. {
  12.     /*
  13.      * Get the parameters to the various GRECTs.
  14.      */
  15.     wind_get(ws->hand,WF_WORKXYWH,&ws->work.g_x,&ws->work.g_y,
  16.             &ws->work.g_w,&ws->work.g_h);
  17.     wind_get(ws->hand,WF_CURRXYWH,&ws->curr.g_x,&ws->curr.g_y,
  18.             &ws->curr.g_w,&ws->curr.g_h);
  19.     wind_get(ws->hand,WF_PREVXYWH,&ws->prev.g_x,&ws->prev.g_y,
  20.             &ws->prev.g_w,&ws->prev.g_h);
  21.     wind_get(ws->hand,WF_FULLXYWH,&ws->full.g_x,&ws->full.g_y,
  22.             &ws->full.g_w,&ws->full.g_h);
  23.     /*
  24.      * Put the appropriate values in the appropriate GRECTs
  25.      */
  26.     ws->maxx = ws->work.g_w / ws->wchr;
  27.     ws->maxy = ws->work.g_h / ws->hchr;
  28. }
  29.